{"action":"closed","issue":{"url":"https://api.github.com/repos/aldeed/meteor-simple-schema/issues/249","labels_url":"https://api.github.com/repos/aldeed/meteor-simple-schema/issues/249/labels{/name}","comments_url":"https://api.github.com/repos/aldeed/meteor-simple-schema/issues/249/comments","events_url":"https://api.github.com/repos/aldeed/meteor-simple-schema/issues/249/events","html_url":"https://github.com/aldeed/meteor-simple-schema/issues/249","id":56303275,"number":249,"title":"window.S is undefined","user":{"login":"fredevery","id":384314,"avatar_url":"https://avatars.githubusercontent.com/u/384314?v=3","gravatar_id":"","url":"https://api.github.com/users/fredevery","html_url":"https://github.com/fredevery","followers_url":"https://api.github.com/users/fredevery/followers","following_url":"https://api.github.com/users/fredevery/following{/other_user}","gists_url":"https://api.github.com/users/fredevery/gists{/gist_id}","starred_url":"https://api.github.com/users/fredevery/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fredevery/subscriptions","organizations_url":"https://api.github.com/users/fredevery/orgs","repos_url":"https://api.github.com/users/fredevery/repos","events_url":"https://api.github.com/users/fredevery/events{/privacy}","received_events_url":"https://api.github.com/users/fredevery/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-02-02T22:30:51Z","updated_at":"2015-02-04T01:56:17Z","closed_at":"2015-02-04T01:56:17Z","body":"I keep getting:\r\n\r\nsimple-schema.js:261 Uncaught TypeError: undefined is not a function\r\n\r\nand on line 261 is:\r\n\r\nif (S(fieldName2).startsWith(keyPrefix)) {\r\n\r\nand I see on lines 10-12:\r\n\r\nif (Meteor.isClient) {\r\n  S = window.S;\r\n}\r\n\r\nbut window.S is undefined. I am assuming it's supposed to be using underscore string but I don't see it in the package dependencies.\r\n\r\n[EDIT]\r\n\r\nI see now that there is a string.js file in the project. Not sure why window.S is undefined for me then.\r\n\r\n[EDIT]\r\n\r\nAaah...figure it out. I've got raix:famono added as well, and it's brought the define method in with the requirejs_client lib. So the string module isn't exporting onto the window namespace"}}