From 79d561652635954343f5c121ecf3b167b6dfdccc Mon Sep 17 00:00:00 2001 From: yaoazhen Date: Thu, 5 Dec 2013 14:36:06 +0800 Subject: [PATCH] remove nouse code --- example/example.html | 94 ++++++++++++++++++++++---------------------- src/Flow.js | 9 +---- 2 files changed, 49 insertions(+), 54 deletions(-) diff --git a/example/example.html b/example/example.html index 98cfbc4..d5cc0d2 100644 --- a/example/example.html +++ b/example/example.html @@ -1,47 +1,47 @@ - - - - - Example - - - -

Results in the console

- - - + + + + + Example + + + +

Results in the console

+ + + diff --git a/src/Flow.js b/src/Flow.js index ab96150..911ad14 100644 --- a/src/Flow.js +++ b/src/Flow.js @@ -3,9 +3,6 @@ define(function (require, exports) { - //If have dependencies, get them here - var _ = require('underscore'); - var undef = undefined; var ArrayProto = Array.prototype; var ObjProto = Object.prototype; @@ -420,11 +417,9 @@ //the code does not have dependencies, or //dependencies fit the call pattern below. - var mapping = {"underscore": "_"}; - factory(function (value) { - if (mapping[value]) { - value = mapping[value]; + if (shim[value]) { + value = shim[value]; } return window[value]; }, (window));