kupriyanenko / jbone

JavaScript Library for Events and DOM manipulation. Replaces jQuery for Backbone (2.5kb gzipped)
http://jbone.js.org
MIT License
279 stars 35 forks source link

Global scope #2

Closed miraage closed 11 years ago

miraage commented 11 years ago

What u think about wrapping src/core.js in self-invoking function to make global scope being clear?

kupriyanenko commented 11 years ago

Global scope is clear, you can see this in this file https://github.com/kupriyanenko/jbone/blob/master/dist/jbone.js

Before building final version files are wrapped in single wrapper

(function(exports, global) { })({}, function() { return this; }());