Permalink
Browse files

Remove type checking

  • Loading branch information...
koenbok committed Nov 5, 2013
1 parent 7942d46 commit 01172c382a01e18b26390b05b635749f1fd0fcb4
Showing with 10 additions and 20 deletions.
  1. +4 −9 build/framer.js
  2. +1 −2 package.json
  3. +1 −5 src/eventemitter.coffee
  4. +4 −4 test/tests/events.coffee
@@ -1,7 +1,7 @@
// Framer 2.0-44-g352e090 (c) 2013 Koen Bok
// Framer 2.0-45-g7942d46 (c) 2013 Koen Bok
// https://github.com/koenbok/Framer
window.FramerVersion = "2.0-44-g352e090";
window.FramerVersion = "2.0-45-g7942d46";
(function(){var require = function (file, cwd) {
@@ -3702,14 +3702,10 @@ require.define("/src/primitives/frame.coffee",function(require,module,exports,__
});
require.define("/src/eventemitter.coffee",function(require,module,exports,__dirname,__filename,process,global){(function() {
var check, eventCheck,
var eventCheck,
__slice = [].slice;
check = require("check-types");
eventCheck = function(event) {
return check.verifyUnemptyString(event, "Missing event type");
};
eventCheck = function() {};
exports.EventEmitter = (function() {
function EventEmitter() {
@@ -3746,7 +3742,6 @@ require.define("/src/eventemitter.coffee",function(require,module,exports,__dirn
EventEmitter.prototype.removeListener = function(event, listener) {
var l;
check.verifyUnemptyString(event);
if (!this.events) {
return;
}
@@ -17,8 +17,7 @@
"coffeelint": "0.5.x",
"phantomjs": "1.9.x",
"mocha-phantomjs": "2.x.x",
"watchr": "2.4.x",
"check-types": "0.6.x"
"watchr": "2.4.x"
},
"license": "MIT"
}
@@ -1,7 +1,5 @@
check = require "check-types"
eventCheck = (event) ->
check.verifyUnemptyString event, "Missing event type"
eventCheck = () ->
class exports.EventEmitter
@@ -32,8 +30,6 @@ class exports.EventEmitter
# @emit "removeListener", event, listener
check.verifyUnemptyString event
return unless @events
return unless @events[event]
@@ -3,8 +3,8 @@ describe "View", ->
createView = ->
view = new View width:100, height:100
describe "Checks", ->
# describe "Checks", ->
it "should set check empty event", ->
view = createView()
(-> view.on "").should.throw("Missing event type")
# it "should set check empty event", ->
# view = createView()
# (-> view.on "").should.throw("Missing event type")

0 comments on commit 01172c3

Please sign in to comment.