Skip to content

Commit

Permalink
rename util-core.js to util-path.js
Browse files Browse the repository at this point in the history
  • Loading branch information
lifesinger committed Nov 17, 2011
1 parent cb7fc9b commit e142bc3
Show file tree
Hide file tree
Showing 6 changed files with 157 additions and 158 deletions.
7 changes: 6 additions & 1 deletion build/plugin-base.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

define('plugin-base', [], function(require, exports) {

var util = seajs.pluginSDK.util;
var RP = require.constructor.prototype;
var meta = {};
var cache = {};
Expand All @@ -29,6 +30,10 @@ define('plugin-base', [], function(require, exports) {
var _resolve = RP.resolve;

RP.resolve = function(id, context) {
if (util.isArray(id)) {
return _resolve(id, context);
}

var flag;

if (/\.\w|^\w+!/.test(id)) {
Expand Down Expand Up @@ -72,7 +77,7 @@ define('plugin-base', [], function(require, exports) {
var _load = RP.load;

RP.load = function(url, callback, charset) {
var type = cache[RP._unparseMap(url)];
var type = cache[util.unParseMap(url)];
if (type) {
meta[type].load(url, callback);
}
Expand Down
Loading

0 comments on commit e142bc3

Please sign in to comment.